/**
 * testManagement
 * 所有的教务，页面路由
 */
export default [
  {
    path: "/testManagement",
    redirect: "/testManagement/testpaper/testPaperList",
    alwaysShow: true, // will always show the root menu
    name: "TestManagementHome",
    meta: {
      title: "考务管理",
      icon: "icon-kaowuguanli1",
      roles: ["admin", "editor"], // you can set roles in root nav
    },
    children: [
      {
        path: "/testManagement/examinationList",
        component: () => import("@/views/TestManagement/ExaminationList.vue"),
        name: "ExaminationList",
        meta: {
          title: "考试管理",
          roles: ["admin"], 
        },
      },
      {
        path: "/testManagement/AddExaminationItem",
        component: () =>
          import("@/views/TestManagement/AddExaminationItem.vue"),
        name: "AddExaminationItem",
        meta: {
          title: "新增",
          roles: ["admin"], 
        },
        hidden: true,
      },
      {
        path: "/testManagement/ExaminationDetail",
        component: () => import("@/views/TestManagement/ExaminationDetail.vue"),
        name: "ExaminationDetail",
        meta: {
          title: "考试详情",
          roles: ["admin"], 
        },
        hidden: true,
      },
      {
        path: "/testManagement/examAttendanceDocket",
        component: () =>
          import("@/views/TestManagement/ExamAttendanceDocket.vue"),
        name: "ExamAttendanceDocket",
        meta: {
          title: "准考证管理",
          roles: ["admin"], 
        },
      }, 
      {
        path: "/testManagement/registration",
        component: () => import("@/views/TestManagement/Registration.vue"),
        name: "Registration",
        meta: {
          title: "签到表管理",
          roles: ["admin"], 
        },
      }, 
      {
        path: "/testManagement/details",
        component: () => import("@/views/TestManagement/Details.vue"),
        name: "Details",
        meta: {
          title: "考生详情",
          roles: ["admin"], 
        },
        hidden: true,
      },
      {
        path: "/testManagement/print",
        component: () => import("@/views/TestManagement/Print.vue"),
        name: "testManagementPrint",
        meta: {
          title: "签到表打印",
        },
        hidden: true,
      },
      {
        path: "/testManagement/setExamAttendanceDocket/:examId?",
        component: () =>
          import("@/views/TestManagement/SetExamAttendanceDocket.vue"),
        name: "SetExamAttendanceDocket",
        meta: {
          title: "准考证预览",
          roles: ["admin"], 
        },
        hidden: true,
      },
      {
        path: "/testManagement/examAttendanceDocketprint/:id?",
        component: () =>
          import("@/views/TestManagement/ExamAttendanceDocketprint.vue"),
        name: "ExamAttendanceDocketprint",
        meta: {
          title: "准考证打印",
          roles: ["admin"], 
        },
        hidden: true,
      },
      {
        path: "/testManagement/testpaperbag",
        component: () => import("@/views/TestManagement/Testpaperbag.vue"),
        name: "Testpaperbag",
        meta: {
          title: "试卷袋管理",
          roles: ["admin"], 
        },
      },
      {
        path: "/testManagement/testpaperbagOut",
        component: () => import("@/views/TestManagement/TestpaperbagOut.vue"),
        name: "TestpaperbagOut",
        meta: {
          title: "打印试卷袋",
          roles: ["admin"], 
        },
        hidden: true,
      },
      {
        path: "/testManagement/examinationroom",
        component: () => import("@/views/TestManagement/ExaminationRoom.vue"),
        name: "ExaminationRoom",
        meta: {
          title: "考场安排",
          roles: ["admin"], 
        }
      },
    ],
  },
];
